# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=loksh
pkgver=7.1
pkgrel=0
pkgdesc="A Linux port of OpenBSD's ksh"
url="https://github.com/dimkr/$pkgname"
arch="all"
license="ISC"
makedepends="ncurses-dev meson"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
options="!check" # upstream doesn't have a test suite
subpackages="$pkgname-doc"
source="loksh-$pkgver.tar.xz::https://github.com/dimkr/loksh/releases/download/$pkgver/loksh-$pkgver.tar.xz"

build() {
	abuild-meson \
		--prefix=/ \
		--bindir=/bin \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
f46221f765f2799856049fbfe1650e6f3d13d597cf97843d4b54b9803b9ecedbf8a8c9364e1ba9b981b667004a8fe4da043006945f8b61f094678d3578518716  loksh-7.1.tar.xz
"
